package com.see.client;

import java.io.IOException;
import java.net.UnknownHostException;

import com.see.client.exception.BadOrderException;
import com.see.domain.Order;
import com.see.exception.MessegeFeedException;
import com.see.exception.UserExistException;

public interface TradingClient {
	public void connect(String userName, String serverAdress, int port, Listener listner) throws UserExistException, UnknownHostException, IOException, MessegeFeedException;
	public int sendOrder(Order order) throws BadOrderException, MessegeFeedException;
	public void close();
	public void addLisner(Listener listner);
	public void removeLisner(Listener listner);
}
